<style scoped>
.nums_con{
    display: inline-block;
}
.nums_con .num_item{
    display: inline-block;
    color: #fff;
    background: #0055A8;
    width: 2.5vw;
    height: 6.1vh;
    line-height: 6.1vh;
    text-align: center;
    font-size: 4.2vh;
    font-weight: bold;
    border-radius: .2vw;
    margin-right: .2vw;
}
.nums_con .num_item:last-child{
    margin-right: 0;
}
</style>
<template>
  <div ref="Nums" :class="numClass" class="nums_con">
      <div class="num_item" v-for="(item,i) in numArr" :key="i">{{ item }}</div>
  </div>
</template>
<script>
export default {
    name:'Nums',
    props:{
        num: Number,
        numClass:{
            type: Array|String,
            default:()=>{
                return '';
            }
        }
    },
    data(){
        return {}
    },
    computed:{
        numArr(){
            return (this.num+'').split('');
        }
    },
}
</script>